package com.wmyg.antifake.entity;

import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.util.Date;

/**
 * @author 王卓逸
 * @program TODO
 * @description TODO
 * @create 2019-05-05
 */
@Entity
@EntityListeners(AuditingEntityListener.class)
@Data
@Table(name = "wx_notice_policy")
public class NoticePolicy {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "policy_id")
    private Integer policyId;

    @Column(name = "policy")
    private Integer policy;

    @Column(name = "warning_value")
    private Integer warningValue;

    @Column(name = "warning_content")
    private String warningContent;

    @Column(name = "danger_value")
    private Integer dangerValue;

    @Column(name = "danger_content")
    private String dangerContent;

    @Column(name = "normal_content")
    private String normalContent;

    @CreatedDate
    @Column(name = "create_time")
    private Date createTime;

    @LastModifiedDate
    @Column(name = "modify_time")
    private Date modifyTime;

}
